GraphResponseConverter

open class GraphResponseConverter<T>(type: Type?, gson: Gson) : Converter<ResponseBody, T>

GraphQL response body converter to unwrap nested object results, resulting in a smaller generic tree for requests

Constructors

Link copied to clipboard
constructor(type: Type?, gson: Gson)

Functions

Link copied to clipboard
open override fun convert(responseBody: ResponseBody): T?

Converter contains logic on how to handle responses, since GraphQL responses follow the JsonAPI spec it makes sense to wrap our base query response data and errors response in here, the logic remains open to the implementation